//
var TN_Widget = function() {
return {
//Options
newWindow : true,
linkText : "view
tickets",
tixUrl : "http://www.ticketnetwork.com/tix/",
trackingParams : "",
custLink : true,
//depricated
kbid : "",
//Overwrittable functions
trackingLink :"",
CreateCustomUrl : function(row) {
return this.tixUrl + row[7] + "-tickets-"+ row[6] + ".aspx";
},
CreateEventRow : function(row, isAlt) {
return "
" +
row[0] +" | " +
row[1] +" " +
row[2] +" | " +
row[3] +" " +
row[4] + " " +
row[5] + " | "+ this.linkText+ " |
";
},
AddCss: function(cssUrl) {
var fileref=document.createElement("link");
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", cssUrl);
document.getElementsByTagName("head")[0].appendChild(fileref);
},
CreateTable : function(eventData,kywrds,url) {
if(typeof(TN_SetWidgetOptions) == "function")
TN_SetWidgetOptions();
//for backwards compatability
if(this.kbid != "")
this.trackingParams = "?img=249&kbid="+this.kbid;
var newTable = [];
for(var cntr = 0; cntr < eventData.length; cntr++)
newTable.push(this.CreateEventRow(eventData[cntr], cntr % 2 == 1));
var objToAddTo;
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML = '' + newTable.join('') + '
';
} else
document.write('' + newTable.join('') + '
');
if(eventData.length >= 100 && kywrds != undefined) {
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML += '';
} else {
document.write("");
}
}
if(eventData.length > 0) {
document.getElementById("previewNote").style.display = "none";
}
}
};
}();
//BPW-TNSERV-01B
TN_Widget.CreateTable([['City and Colour','Rialto Theatre - Tucson','Tucson, AZ','Sunday','5/5/2024','8:00 PM','6264169','City-and-Colour-5-5-2024'],['City and Colour','The Lensic Performing Arts Center','Santa Fe, NM','Monday','5/6/2024','7:30 PM','6264173','City-and-Colour-5-6-2024'],['City and Colour','The Criterion - Oklahoma City','Oklahoma City, OK','Wednesday','5/8/2024','8:00 PM','6264174','City-and-Colour-5-8-2024'],['City and Colour','The Joy Theater','New Orleans, LA','Friday','5/10/2024','8:00 PM','6264170','City-and-Colour-5-10-2024'],['City and Colour','Workplay Theatre','Birmingham, AL','Saturday','5/11/2024','8:00 PM','6273564','City-and-Colour-5-11-2024'],['City and Colour','Workplay Soundstage','Birmingham, AL','Saturday','5/11/2024','8:00 PM','6264175','City-and-Colour-5-11-2024'],['City and Colour','Ryman Auditorium','Nashville, TN','Monday','5/13/2024','7:30 PM','6264176','City-and-Colour-5-13-2024'],['City and Colour','Louisville Palace','Louisville, KY','Tuesday','5/14/2024','8:00 PM','6264171','City-and-Colour-5-14-2024'],['The Avett Brothers & City And Colour','TD Pavilion at The Mann Center For The Performing Arts','Philadelphia, PA','Thursday','5/16/2024','7:00 PM','6211897','The-Avett-Brothers---City-And-Colour-5-16-2024'],['City and Colour','The Norva','Norfolk, VA','Friday','5/17/2024','8:00 PM','6264177','City-and-Colour-5-17-2024'],['City and Colour','House Of Blues - Cleveland','Cleveland, OH','Sunday','5/19/2024','8:00 PM','6264172','City-and-Colour-5-19-2024'],['City and Colour','Stage AE','Pittsburgh, PA','Monday','5/20/2024','7:00 PM','6264178','City-and-Colour-5-20-2024'],['Born and Raised Festival: City and Colour & Alexisonfire -2 Day Pass','Montebello Park','St Catharines, Canada','Friday','7/5/2024','TBD','6241426','Born-and-Raised-Festival--City-and-Colour---Alexisonfire--2-Day-Pass-7-5-2024'],['Born and Raised Festival: City and Colour, Metric, Sloan & Dooms Children','Montebello Park','St Catharines, Canada','Friday','7/5/2024','4:30 PM','6241424','Born-and-Raised-Festival--City-and-Colour--Metric--Sloan---Dooms-Children-7-5-2024'],['Under The Big Sky Music Festival: Miranda Lambert, Billy Strings & Turnpike Troubadours - 3 Day Pass','The Barns at Big Mountain Ranch','Whitefish, MT','Friday','7/12/2024','TBD','6113543','Under-The-Big-Sky-Music-Festival--Miranda-Lambert--Billy-Strings---Turnpike-Troubadours---3-Day-Pass-7-12-2024'],['Under The Big Sky Festival: Miranda Lambert & City and Colour - Saturday','The Barns at Big Mountain Ranch','Whitefish, MT','Saturday','7/13/2024','12:00 PM','6217073','Under-The-Big-Sky-Festival--Miranda-Lambert---City-and-Colour---Saturday-7-13-2024'],['Extreme & Living Colour','VooDoo Lounge At Harrah's North Kansas City','Kansas City, MO','Sunday','9/1/2024','8:00 PM','6414103','Extreme---Living-Colour-9-1-2024']],'City And Colour','http://www.ticketnetwork.com/ticket/City-And-Colour-events.aspx');